package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.dto.CancelDto;
import com.zzyl.nursing.dto.ExecuteTaskDto;
import com.zzyl.nursing.dto.NursingTaskDto;
import com.zzyl.nursing.vo.NursingTaskDetailVo;
import com.zzyl.nursing.vo.NursingTaskTimeUpdateDto;
import com.zzyl.nursing.vo.NursingTaskVo;

import java.util.List;

/**
 * 护理任务Service接口
 *
 * @author ruoyi
 * @date 2024-09-27
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 查询护理任务
     *
     * @param id 护理任务主键
     * @return 护理任务
     */
    public NursingTaskDetailVo selectNursingTaskById(Long id);

    /**
     * 查询护理任务列表
     *
     * @param dto 护理任务
     * @return 护理任务集合
     */
    public List<NursingTask> selectNursingTaskList(NursingTaskDto dto);

    /**
     * 新增护理任务
     *
     * @param nursingTask 护理任务
     * @return 结果
     */
    public int insertNursingTask(NursingTask nursingTask);

    /**
     * 修改护理任务
     *
     * @param nursingTask 护理任务
     * @return 结果
     */
    public int updateNursingTask(NursingTask nursingTask);

    /**
     * 批量删除护理任务
     *
     * @param ids 需要删除的护理任务主键集合
     * @return 结果
     */
    public int deleteNursingTaskByIds(Long[] ids);

    /**
     * 删除护理任务信息
     *
     * @param id 护理任务主键
     * @return 结果
     */
    public int deleteNursingTaskById(Long id);

    /**
     * 生成护理任务
     * @param elder
     */
    void createMonthTask(Elder elder);

    LambdaQueryWrapper<NursingTask> getQueryWrapper(NursingTaskDto dto);

    void cancel(CancelDto cancelDto);

    void performTask(ExecuteTaskDto executeTaskDto);

    void updateTime(NursingTaskTimeUpdateDto dto);
}
